package com.oamicnet.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AuthPrint {

    @Before("execution(* com.oamicnet.service.*.*(..))")
    public void print(JoinPoint joinPoint) {
        System.out.println("joinPoint.getSignature().getName():"+joinPoint.getSignature().getName());
        System.out.println("auth print...");
    }

}
